/*
 * BMEditor.h
 *
 *  Created on: Oct 29, 2013
 *      Author: pridhvi
 */

#ifndef BMEDITOR_H_
#define BMEDITOR_H_
#include "../dependency/GlobalStructures.h"
using namespace std;
class BMEditor {
public:
	BMEditor();
	virtual ~BMEditor();
	void showEditor();
	STATUS_CODE execute(string query);
	void testCreateDB(string dbname,long numOfPages);
	void testOpenDB(string dbname);
	void testCloseDB();
        void testCloseDB(int cache_id);
        void testDropDB(string dbname);
	void testHitRate();
	void testDisplayMemory();
	void testShowBufferList();
	void testShowFrame(int frameNo);
	void testCommitCache();
        void testDisplayHelp();
	void testStopCache();
	void testStatCache(int sizeMB);
	void testWritePage(int pgNo,const char* data);
        void testWritePage(int cache_id,int pgNo,const char* data);
	void testReadPage(int pgNo);
        void testReadPage(int cache_id,int pgNo);
	void testListDB();
        void testResizeDB(int cache_id);
        void showPage(char * pageData);
        void testCacheIndex();
        void testMetaData();
};

#endif /* BMEDITOR_H_ */
